@import '~antd/lib/style/themes/default.less';

@layout-header-height: 56px;

.head {
    width: 100%;
    transition: background 0.3s, width 0.2s;
    height: @layout-header-height;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;

    :global {
        .ant-menu-submenu.ant-menu-submenu-horizontal {
            line-height: @layout-header-height;
            height: 100%;

            .ant-menu-submenu-title {
                height: 100%;
                // color: rgba(255, 255, 255, 0.65);
            }
        }

        .ant-menu-submenu-selected {
            color: @primary-color;
        }

        .ant-menu-submenu-title:hover {
            color: @primary-color;
        }

        .ant-menu-item-active {
            >a {
                color: @primary-color  !important;
            }

            border-bottom: none;
        }
    }

    &.light {
        background-color: #fff;
    }

    .main {
        display: flex;
        height: @layout-header-height;
        padding-left: 24px;

        &.wide {
            max-width: 1200px;
            margin: auto;
            padding-left: 0;
        }

        .left {
            flex: 1;
            display: flex;
        }

        .right {
            width: 324px;
        }
    }
}

.logo {
    //width: 232px;
    height: @layout-header-height;
    position: relative;
    line-height: @layout-header-height;
    transition: all 0.3s;
    overflow: hidden;

    img {
        display: inline-block;
        vertical-align: middle;
        height: 31px;
    }

    h1 {
        color: #ffa22d;
        display: inline-block;
        vertical-align: middle;
        font-size: 18px;
        margin: 0 0 0 12px;
        font-weight: bold;
    }

    h3 {
        font-size: 14px;
        display: inline-block;
        vertical-align: middle;
        color: #ffa22d;
        margin: 0 0 0 12px;
    }

    &.co {
        width: 56px;
    }
}

.light {
    h1 {
        color: #002140;
    }
}

.menu {
    border: none;
    height: @layout-header-height;
    line-height: @layout-header-height;
}

.toggleBtn {
    color: #ffffffa6;
    line-height: @layout-header-height;
    margin-right: 30px;
    cursor: pointer;
    font-size: 20px;
}

.midLine {
    display: inline-block;
    vertical-align: middle;
    width: 1px;
    height: 12px;
    background: rgba(255, 158, 0, 0.5);
    margin: 0 8px;
}

.simpleHeader {
    width: 800px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.simpleLogo {
    display: flex;
    align-items: center;

    h1 {
        color: #ffa22d;
        font-size: 18px;
        margin: 0 0 0 12px;
        font-weight: bold;
    }

    img {
        height: 31px;
    }
}

.simpleMidLine {
    width: 1px;
    height: 12px;
    background: rgba(255, 158, 0, 0.5);
    margin: 0 8px;
}

.simpleCompanyName {
    color: #ff9e00;
    font-size: 16px;
}

.simpleTabName {
    color: #ff9e00;
    position: relative;
    margin-left: 33px;

    &::after {
        content: '';
        position: absolute;
        bottom: 12px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ff9e00;
    }
}
